<?php
/**
 * Created by PhpStorm.
 * User: rocky
 * Date: 2019-07-14
 * Time: 01:24
 */

namespace app\shop\resource;

use app\common\resource\BaseResource;

class OpinionResource extends BaseResource
{
    public function toArray($data)
    {
        return [
            'title' => $data['title'],
            'content' => htmlspecialchars($data['content'])
        ];
    }

}